package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:27 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceMember implements java.io.Serializable {

  public WorkspaceMember() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long sysUserId;

  /** Attribute sysUserId Be Seted Falg */
  private boolean sysUserIdSetted = false;

  /** Attribute sysUserId is Null Falg */
  private boolean sysUserIdNull = false;

  /**
   * Get sysUserId
   *
   * @return long
   */
  public final long getSysUserId() {

    return sysUserId;
  }

  /**
   * Set sysUserId
   *
   * @param long
   */
  public final void setSysUserId(long sysUserId) {

    this.sysUserId = sysUserId;

    this.sysUserIdSetted = true;

    this.setSysUserIdNull(false);
  }

  /**
   * Get sysUserId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isSysUserIdSetted() {
    return this.sysUserIdSetted;
  }

  /** Set sysUserId Null */
  public final void setSysUserIdNull() {

    this.sysUserIdNull = true;
  }

  public final void setSysUserIdNull(boolean aNullFlag) {

    this.sysUserIdNull = aNullFlag;
  }

  public final boolean isSysUserIdNull() {

    return this.sysUserIdNull;
  }

  private String scmAccount;

  /** Attribute scmAccount Be Seted Falg */
  private boolean scmAccountSetted = false;

  /** Attribute scmAccount is Null Falg */
  private boolean scmAccountNull = false;

  /**
   * Get scmAccount
   *
   * @return String
   */
  public final String getScmAccount() {

    if (isScmAccountNull()) {
      return null;
    } else {
      return StringUtils.trim(scmAccount);
    }
  }

  /**
   * Set scmAccount
   *
   * @param String
   */
  public final void setScmAccount(String scmAccount) {

    this.scmAccount = StringUtils.trim(scmAccount);

    this.scmAccountSetted = true;

    this.setScmAccountNull(this.scmAccount == null);
  }

  /**
   * Get scmAccount Has Been Setted
   *
   * @return boolean
   */
  public final boolean isScmAccountSetted() {
    return this.scmAccountSetted;
  }

  /** Set scmAccount Null */
  public final void setScmAccountNull() {

    this.scmAccountNull = true;
  }

  public final void setScmAccountNull(boolean aNullFlag) {

    this.scmAccountNull = aNullFlag;
  }

  public final boolean isScmAccountNull() {

    return this.scmAccountNull;
  }

  private String role;

  /** Attribute role Be Seted Falg */
  private boolean roleSetted = false;

  /** Attribute role is Null Falg */
  private boolean roleNull = false;

  /**
   * Get role
   *
   * @return String
   */
  public final String getRole() {

    if (isRoleNull()) {
      return null;
    } else {
      return StringUtils.trim(role);
    }
  }

  /**
   * Set role
   *
   * @param String
   */
  public final void setRole(String role) {

    this.role = StringUtils.trim(role);

    this.roleSetted = true;

    this.setRoleNull(this.role == null);
  }

  /**
   * Get role Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRoleSetted() {
    return this.roleSetted;
  }

  /** Set role Null */
  public final void setRoleNull() {

    this.roleNull = true;
  }

  public final void setRoleNull(boolean aNullFlag) {

    this.roleNull = aNullFlag;
  }

  public final boolean isRoleNull() {

    return this.roleNull;
  }

  private int lastChangeCodeLine;

  /** Attribute lastChangeCodeLine Be Seted Falg */
  private boolean lastChangeCodeLineSetted = false;

  /** Attribute lastChangeCodeLine is Null Falg */
  private boolean lastChangeCodeLineNull = false;

  /**
   * Get lastChangeCodeLine
   *
   * @return int
   */
  public final int getLastChangeCodeLine() {

    return lastChangeCodeLine;
  }

  /**
   * Set lastChangeCodeLine
   *
   * @param int
   */
  public final void setLastChangeCodeLine(int lastChangeCodeLine) {

    this.lastChangeCodeLine = lastChangeCodeLine;

    this.lastChangeCodeLineSetted = true;

    this.setLastChangeCodeLineNull(false);
  }

  /**
   * Get lastChangeCodeLine Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastChangeCodeLineSetted() {
    return this.lastChangeCodeLineSetted;
  }

  /** Set lastChangeCodeLine Null */
  public final void setLastChangeCodeLineNull() {

    this.lastChangeCodeLineNull = true;
  }

  public final void setLastChangeCodeLineNull(boolean aNullFlag) {

    this.lastChangeCodeLineNull = aNullFlag;
  }

  public final boolean isLastChangeCodeLineNull() {

    return this.lastChangeCodeLineNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private java.util.Date lastActivityTime;

  /** Attribute lastActivityTime Be Seted Falg */
  private boolean lastActivityTimeSetted = false;

  /** Attribute lastActivityTime is Null Falg */
  private boolean lastActivityTimeNull = false;

  /**
   * Get lastActivityTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getLastActivityTime() {

    return lastActivityTime;
  }

  /**
   * Set lastActivityTime
   *
   * @param java.util.Date
   */
  public final void setLastActivityTime(java.util.Date lastActivityTime) {

    this.lastActivityTime = lastActivityTime;

    this.lastActivityTimeSetted = true;

    this.setLastActivityTimeNull(this.lastActivityTime == null);
  }

  /**
   * Get lastActivityTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isLastActivityTimeSetted() {
    return this.lastActivityTimeSetted;
  }

  /** Set lastActivityTime Null */
  public final void setLastActivityTimeNull() {

    this.lastActivityTimeNull = true;
  }

  public final void setLastActivityTimeNull(boolean aNullFlag) {

    this.lastActivityTimeNull = aNullFlag;
  }

  public final boolean isLastActivityTimeNull() {

    return this.lastActivityTimeNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private String userName;

  /** Attribute userName Be Seted Falg */
  private boolean userNameSetted = false;

  /** Attribute userName is Null Falg */
  private boolean userNameNull = false;

  /**
   * Get userName
   *
   * @return String
   */
  public final String getUserName() {

    if (isUserNameNull()) {
      return null;
    } else {
      return StringUtils.trim(userName);
    }
  }

  /**
   * Set userName
   *
   * @param String
   */
  public final void setUserName(String userName) {

    this.userName = StringUtils.trim(userName);

    this.userNameSetted = true;

    this.setUserNameNull(this.userName == null);
  }

  /**
   * Get userName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isUserNameSetted() {
    return this.userNameSetted;
  }

  /** Set userName Null */
  public final void setUserNameNull() {

    this.userNameNull = true;
  }

  public final void setUserNameNull(boolean aNullFlag) {

    this.userNameNull = aNullFlag;
  }

  public final boolean isUserNameNull() {

    return this.userNameNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceMember) == false) {
      return false;
    }
    WorkspaceMember other = (WorkspaceMember) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("sysUserId=");
    buffer.append(this.sysUserId);

    buffer.append("scmAccount=");
    buffer.append(this.scmAccount);

    buffer.append("role=");
    buffer.append(this.role);

    buffer.append("lastActivityTime=");
    buffer.append(this.lastActivityTime);

    buffer.append("lastChangeCodeLine=");
    buffer.append(this.lastChangeCodeLine);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("userName=");
    buffer.append(this.userName);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("]");

    return buffer.toString();
  }
}
